import threading


class MyThread(threading.Thread):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        print("init")

    def run(self):
        print("Hello")


def print_lines(num):
    for i in range(num):
        print("Hello")


MyThread(target=print_lines, args=(5,)).start()
